package com.usian.mapper;

import com.usian.pojo.Student;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface StudentMapper extends Mapper<Student> {

    void addStu(Student student);

    @Select("select * from student")
    List<Student> findAll();

    void updateStu(Student student);

    void delStu(Integer id);

    Student findById(Integer id);
}
